#ifndef RECORD_H
#define RECORD_H
#include "eventcenter.h"
#include "UIEditor/uilib.h"
#include <QWidget>
#include "GameUI/recorditem.h"

namespace Ui {
class Record;
}

class Record : public QWidget
{
    Q_OBJECT

public:
    explicit Record(QWidget *parent = nullptr);
    ~Record();
    void AddRecord(RecordItem* ri = nullptr);
    void RemoveRecord(int id);
protected:
    void showEvent(QShowEvent *event);

private:
    Ui::Record *ui;
    void Init();
    void ReadAllRecord();
    void Save();
    //存档框图片路径
    QString img = "";
};

#endif // RECORD_H
